using System;
using Webshop20.AntiCorruptionLayers.Amazon.Services.Contracts;
using Webshop20.AntiCorruptionLayers.Amazon.Webservice;

namespace Webshop20.AntiCorruptionLayers.Amazon.Services.Implementations
{
    public class DistributorFacade : IDistributorFacade
    {

        #region IDistributorFacade Members

        public void PlaceOrder(CartCreateRequestItem itemToOrder)
        {
            AWSECommerceServicePortTypeClient client = new AWSECommerceServicePortTypeClient();
            CartCreateRequest cartCreateRequest = new CartCreateRequest();
            CartCreate cartCreate = new CartCreate();
            cartCreate.SubscriptionId = "xxxxxxx";
            cartCreate.Request = new CartCreateRequest[]{ cartCreateRequest};
            var response = client.CartCreate(cartCreate);
            
          
        }

        #endregion
    }
}